package main

import (
	"github.com/gin-gonic/gin"
	project_common "test.com/project-common"
	"test.com/project-common/logs"
	"test.com/project-user/api"
)

func main() {
	r := gin.Default()
	logs.InitLogs(&logs.LogConfig{
		Name:       "user.log",
		MaxSize:    1024,
		MaxBackups: 1,
		MaxAge:     7,
		Compress:   true,
	})
	r.Use(logs.ZapLogger())

	for _, route := range api.Routers {
		route.Register(r)
	}

	project_common.Run(r, "project-user", ":8080")

}
